package com.fy.tt.dao;

import com.fy.toolhelper.db.IBaseDao;
import com.fy.tt.entity.Parser;
import com.fy.tt.entity.query.ParserQuery;
import com.fy.tt.entity.vo.ParserVo;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface ParserDao extends IBaseDao<Parser> {
    List<Parser> getAllParsers(Connection connection) throws SQLException;

    int deleteParser(Connection connection, int id) throws SQLException;

    // 分页查询
    List<Parser> getPageParsers(Connection connection, int pageSize, int current) throws SQLException;
    // 分页多条件查询
    List<ParserVo> getConditionPageParsers(Connection connection, ParserQuery parserQuery, int pageSize, int current) throws SQLException;

    Parser getParserByObjId(Connection dbConnection, Long bandObjId) throws SQLException;
}
